package com.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Admin {

    /**
     * 管理员ID
     */
    @NotNull
    private int adminID;

    /**
     * 管理员昵称
     */
    @NotNull
    @Size(min = 2,max = 10)
    private String adminName;

    /**
     * 密码
     */
    @NotNull
    @Size(min = 8,max = 16)
    private String password;

    /**
     * 当前状态
     */
    @NotNull
    private Boolean isDelete;

    /**
     * 根据 id,adminName,password 的内容创建Admin对象
     * @param adminID
     * @param adminName
     * @param password
     */
    public Admin(int adminID, String adminName, String password) {
        this.adminID = adminID;
        this.adminName=adminName;
        this.password=password;
    }

    /**
     * 根据 id,adminName,password,isdeleted 的内容创建Admin对象
     * @param adminID
     * @param adminName
     * @param password
     * @param isDelete
     */
    public Admin(int adminID, String adminName, String password, Boolean isDelete) {
        this.adminID = adminID;
        this.adminName = adminName;
        this.password = password;
        this.isDelete = isDelete;
    }

    public int getAdminID() {
        return adminID;
    }

    public void setAdminID(int adminID) {
        this.adminID = adminID;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }
}
